/* 配置页面全局样式 */
.config-layout {
  min-height: 100vh;
  background: #f5f5f5;
  font-family: var(--eko-font-family-chinese, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji');
}

.config-sider {
  background: #fff;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
  overflow: auto;
  border-right: 1px solid #f0f0f0;
}

.config-content {
  padding: 24px;
  background: #f5f5f5;
  overflow-y: auto;
  min-height: 100vh;
}

.config-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8e8e8;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .config-layout .ant-layout-sider {
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
  }
  
  .config-layout .ant-layout {
    margin-left: 200px !important;
  }
  
  .config-layout .ant-layout-sider.ant-layout-sider-collapsed {
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
  }
  
  .config-layout .ant-layout-sider.ant-layout-sider-collapsed + .ant-layout {
    margin-left: 64px !important;
  }
}

@media (max-width: 768px) {
  .config-content {
    padding: 16px;
  }
  
  .config-layout .ant-layout-sider {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    position: fixed !important;
    z-index: 1000;
    height: auto !important;
    min-height: auto !important;
  }
  
  .config-layout .ant-layout {
    margin-left: 0 !important;
    margin-top: 64px;
  }
  
  .config-logo {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
  }
}

/* 菜单样式优化 */
.ant-menu-item {
  border-radius: 6px !important;
  margin: 4px 8px !important;
  transition: all 0.2s ease;
}

.ant-menu-item:hover {
  background-color: #f0f9ff !important;
  transform: translateX(2px);
}

.ant-menu-item-selected {
  background-color: #e6f7ff !important;
  border-color: #1890ff !important;
}

.ant-menu-item-selected::after {
  border-right: 3px solid #1890ff !important;
}

/* 表单样式优化 */
.ant-form-item-label > label {
  font-family: var(--eko-font-family-chinese, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif) !important;
  font-weight: 500 !important;
  color: #262626 !important;
}

.ant-input,
.ant-select-selector,
.ant-btn {
  font-family: var(--eko-font-family-chinese, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif) !important;
  border-radius: 6px !important;
}

.ant-btn-primary {
  background: #1890ff;
  border-color: #1890ff;
  box-shadow: 0 2px 4px rgba(24, 144, 255, 0.2);
}

.ant-btn-primary:hover {
  background: #40a9ff;
  border-color: #40a9ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(24, 144, 255, 0.3);
}

/* 卡片标题样式 */
.ant-card-head-title {
  font-family: var(--eko-font-family-chinese, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif) !important;
  font-weight: 600 !important;
  color: #262626 !important;
}

/* 警告框样式 */
.ant-alert {
  border-radius: 6px !important;
  font-family: var(--eko-font-family-chinese, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif) !important;
}

/* 动画优化 */
.config-layout .ant-layout-sider {
  transition: all 0.2s ease !important;
}

.config-layout .ant-layout {
  transition: margin-left 0.2s ease !important;
}

/* 滚动条样式 */
.config-sider::-webkit-scrollbar {
  width: 4px;
}

.config-sider::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.config-sider::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 2px;
}

.config-sider::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 加载状态样式 */
.config-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  font-family: var(--eko-font-family-chinese, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
  color: #8c8c8c;
}

/* 空状态样式 */
.config-empty {
  text-align: center;
  padding: 48px 24px;
  color: #8c8c8c;
  font-family: var(--eko-font-family-chinese, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
}

.config-empty h3 {
  margin-bottom: 12px;
  color: #595959;
  font-weight: 500;
}

.config-empty p {
  margin: 0;
  font-size: 14px;
}